import {createRouter,createWebHashHistory} from "vue-router";


export default createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path:"/",
            redirect:"/Login"
        },
        {
            path:"/Login",
            component:()=>import("../views/Login.vue")
        },
        {
            path:"/Admin",
            component:()=>import("../views/Admin/Index.vue"),
            children:[
                {
                    path:"List",
                    component:()=>import("../views/Admin/Banner/List.vue")
                },
                {
                    path:"Add",
                    component:()=>import("../views/Admin/Banner/Add.vue")
                },
                {
                    path:"OperatorList",
                    component:()=>import("../views/Admin/Operator/List.vue")
                },
                {
                    path:"OperatorAdd",
                    component:()=>import("../views/Admin/Operator/Add.vue")
                },
                {
                    path:"CommodityList",
                    component:()=>import("../views/Admin/Commodity/Commoditylist.vue")
                },
                {
                    path:"CommodityPage",
                    component:()=>import("../views/Admin/Commodity/Commoditypage.vue")
                },
                {
                    path:"Adress",
                    component:()=>import("../views/Admin/Adress/Adress.vue")
                }
            ]
        }
    ]
});